package com.example.gokchinesefoodmapmcdev.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TestController {

    @RequestMapping("/toLoginPage")
    public String toLoginPage() {
        return "login";
    }

    @RequestMapping("/toFailPage")
    public String toFailPage() {
        return "fail";
    }

    @RequestMapping("/toIndexPage")
    public String toIndexPage() {
        return "index";
    }

    @RequestMapping("/sys/user/list")
    @ResponseBody
    public String getList(){
        return "/sys/user/list";
    }


}
